var maps = {
	init : function() {

		this._test();
		this._testMap();
	},

	_test : function(){
		console.log('test');
	},

	

	_testMap : function() {
		$(document).ready(function(){
			var mapOptions = {
			  center: new google.maps.LatLng(52.702142, 4.880084),
			  zoom: 8,
			  mapTypeId: google.maps.MapTypeId.SATELLITE,
			  mapTypeControl: false,
			  panControl: false,
			  zoomControl: false,
			  streetViewControl: false
			};

			var map = new google.maps.Map(document.getElementById("map_canvas"),mapOptions);

			var marker = new google.maps.Marker({
				position: map.getCenter(),
				map: map,
				title: 'Click to zoom'
			});

			google.maps.event.addListener(map, 'center_changed', function() {
				// 3 seconds after the center of the map has changed, pan back to the
				// marker.
				window.setTimeout(function() {
				  map.panTo(marker.getPosition());
				}, 3000);
			});

			google.maps.event.addListener(marker, 'click', function() {
				map.setZoom(10);
				map.setCenter(marker.getPosition());
		    });

			console.log(map.getCenter());

		});

	}
}

maps.init();